﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Lucilla.Framework.Web.Builders.SlickGrid;

namespace Lucilla.Playground.Website.Areas.Controls.Models.SlickGrid
{
    public static class GridConfigurator
    {
        public static void AsMoney(Column col)
        {
            col.CssClass("cell-money")
                .Width(100)
                .Formatter("MoneyCellFormatter")
                .WithEditorFunction("TextCellEditor");
        }

        public static void AsDate(Column col)
        {
            col.CssClass("cell-date")
                .Width(100)
                .WithEditorFunction("DateCellEditor");
        }
    }
}